package aop.controller;

import aop.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;

/**
 * Author：汤小洋
 * Date：2023-12-14 10:24
 * Description：<描述>
 */
@Controller
@RequiredArgsConstructor
public class UserController {

    private final UserService userService;

    public void login(String username,String password){
        userService.login(username,password);
    }

    public String logout(){
        return userService.logout();
    }

}
